set -ex

baseDir=$(pwd)

logfile=${baseDir}/../log/test.log

go test -v -race -run $@ 2>&1 | tee ${logfile}

go run ../tools/raft-testlog-viz/main.go < ${logfile}
